﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ManageStaff.aspx.cs" Inherits="EWDTAssignment.ManageStaff" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 111px;
            height: 42px;
        }
        .style3
        {
            height: 42px;
        }
        .style5
        {
            width: 85px;
            height: 28px;
        }
        .style6
        {
            height: 28px;
        }
        .style7
        {
            width: 116px;
        }
        .style8
        {
            width: 77px;
        }
        .style13
        {
            width: 85px;
            height: 2px;
        }
        .style14
        {
            width: 85px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    </p>
    <p>
    </p>
    <asp:UpdatePanel  runat="server"><ContentTemplate>
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
        Width="614px">
        <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
            <HeaderTemplate>
                TabPanel1
            </HeaderTemplate>
            <ContentTemplate>
            
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="viewCust" 
                    Width="572px" Height="16px" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" CellPadding="4" 
                    ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateField HeaderText="Account ID">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("AccountID") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("AccountID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="First Name">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FirstName") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("FirstName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Last Name">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("LastName") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("LastName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Contact Number">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ContactNum") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("ContactNum") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Address">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" 
                                    CommandName="Select" Text="View Detail" onclick="LinkButton1_Click"></asp:LinkButton>
                                <br />
                                <asp:Label ID="lblgender" runat="server" Text='<%# Eval("Gender") %>' 
                                    Visible="False"></asp:Label>
                                <br />
                                <asp:Label ID="lbldob" runat="server" Text='<%# Eval("DOB") %>' Visible="False"></asp:Label>
                                <br />
                                <asp:Label ID="lblpostal" runat="server" Text='<%# Eval("postalcode") %>' 
                                    Visible="False"></asp:Label>
                                <br />
                                <asp:Label ID="lbluserName" runat="server" Text='<%# Eval("UserName") %>' 
                                    Visible="False"></asp:Label>
                                <br /> 
                                <asp:Label ID="lblPassword" runat="server" Text='<%# Eval("Password") %>' 
                                    Visible="False"></asp:Label>
                                <br /> 
                                <asp:Label ID="lblQuestion" runat="server" Text='<%# Eval("Question") %>' 
                                    Visible="False"></asp:Label>
                                <br />
                                <asp:Label ID="lblAnswer" runat="server" Text='<%# Eval("Answer") %>' 
                                    Visible="False"></asp:Label>
                                <br />
                                <asp:Label ID="lblAccType" runat="server" Text='<%# Eval("AccountType") %>' 
                                    Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
                <asp:ObjectDataSource ID="viewCust" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="displayCustomer" 
                    TypeName="EWDTAssignment.App_Code.DBManager">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="Customer" Name="AccountType" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="viewStaff" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="displayStaff" 
                    TypeName="EWDTAssignment.App_Code.DBManager">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="staff" Name="AccountType" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="displayAllAccount" 
                    TypeName="EWDTAssignment.App_Code.DBManager">
                </asp:ObjectDataSource>
                <br />
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                <asp:Button ID="BtnViewStaff" runat="server" Text="View Staff" 
                    onclick="BtnViewStaff_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="BtnViewCustomer" runat="server" Text="View  Customer" 
                    onclick="BtnViewCustomer_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="BtnViewAll" runat="server" Text="View All" 
                    onclick="BtnViewAll_Click" />
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
            <HeaderTemplate>
                TabPanel2
            </HeaderTemplate>
            <ContentTemplate>
                <table style="width: 100%; height: 400px;">
                    <tr>
                        <td class="style13">
                            <asp:Button ID="btnDel0" runat="server" Height="26px" OnClick="btnDel_Click" 
                                Text="Delete" Width="61px" />
                        </td>
                        <td class="style3" colspan="3">
                            <asp:Button ID="BtnCreateNew" runat="server" onclick="BtnCreateNew_Click" 
                                Text="Create New" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            Account ID:</td>
                        <td class="style3" colspan="3">
                            <asp:TextBox ID="txtbxAccountId" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            Account Type:</td>
                        <td class="style3" colspan="3">
                            <asp:TextBox ID="txtbxAccountType" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            UserName:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxUserName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            FirstName:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxFName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            LastName:</td>
                        <td class="style6" colspan="3">
                            <asp:TextBox ID="txtbxLname" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Gender:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxGender" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Date of Birth:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxDob" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            &nbsp;</td>
                        <td colspan="3">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Contact Number:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxContactNum" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Address:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxAddress" runat="server" Height="114px" Width="291px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Postal Code:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxPostalC" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Email:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxEmail" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Question:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxQuestion" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Answer:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxAnswer" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Password:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtbxPassword" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            &nbsp;</td>
                        <td ID="btn" class="style7">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td ID="btn" class="style8">
                            &nbsp;</td>
                        <td ID="btn">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style14">
                            &nbsp;</td>
                        <td colspan="3">
                            <asp:Button ID="btnSumit1" runat="server" OnClick="btnSumit0_Click" 
                                Text="Submit" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>
    </ContentTemplate></asp:UpdatePanel>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
